package com.jiangyifen.robot.core.sipphone;

import com.jiangyifen.robot.core.Robot;
import com.jiangyifen.robot.core.VoiceData;

public interface SipPhoneClient {

	
	/**
	 * 注册
	 */
	public void register();
	
	/**
	 * 取消注册
	 */
	public void unregister();
	
	/**
	 * 发起呼叫
	 * @param phoneNumber
	 */
	public String call(final String phoneNumber);
	
	public void orignate(String exten, String gateway, String accessNumber);

	public void rejectCall();
	/**
	 * 挂机
	 */
	public void hangup();
	
	/**
	 * 接听
	 */
	public void answer();

	/**
	 * 发送dtmf
	 * @param digit
	 */
	public void dtmf(final char digit);

	
	public int say(VoiceData voiceData);
	
	public void clearVoiceDataQueue();
	
	public Robot getRobot();

	public void setRobot(Robot robot);
}
